package com.spzx.common.anno;

import com.spzx.common.feign.UserTokenFeignInterceptor;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 自定义注解使用当前拦截器配置类
 * Project: spzx-parent
 * Package: com.spzx.common.anno
 * Version: 1.0
 * <p>
 * Created by  wangjiaxin  on 2024/4/29 下午11:34
 */
@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = ElementType.TYPE)
@Import(value = UserTokenFeignInterceptor.class)    //远程调用feign拦截器，将token信息传入
public @interface EnableUserTokenFeignInterceptor {
}
